package com.ttx.pattern.example.proxy.after;

/**
 * @author TimFruit
 * @date 19-5-26 上午10:51
 */
public class Proxy2 implements Subject2 {
    Subject2 subject2;

    public Proxy2(Subject2 subject2) {
        this.subject2 = subject2;
    }

    @Override
    public void request() {
        System.out.println("增加事务...");
        subject2.request();
    }
}
